<?php
mysql_connect("127.0.0.1","root","sd2013");
mysql_select_db("mathRomp");

//Create new game in GAME database
$prob = mysql_real_escape_string("he\"llo");
print($prob);
$q=mysql_query("INSERT INTO `Game`(`gameId`, `status`, `currentProb`) VALUES (NULL, 0, '".$prob."')");
while($e=mysql_fetch_assoc($q)){
  $output[]=$e;
}
print(json_encode($output));
$id = mysql_insert_id();
print($id);
?>